#include "CorvetteConfiguration.h"

CorvetteConfiguration::CorvetteConfiguration(int _numberConfiguration)
: numberConfiguration(_numberConfiguration){ }

CorvetteConfiguration::~CorvetteConfiguration() { }

CorvetteConfiguration* CorvetteConfiguration::createCorvetteConfiguration(int _type) throw (InvalidBoatConfiguration) {
	switch (_type) {
	case 1:
		return new CorvetteConfiguration1();
		break;
	default:
		throw InvalidBoatConfiguration(2);
	}
}

int CorvetteConfiguration::getNumberConfiguration() const {
	return numberConfiguration;
}

CorvetteConfiguration1::CorvetteConfiguration1() : CorvetteConfiguration(1){ }

CorvetteConfiguration1::~CorvetteConfiguration1() { }

RectangularBoatShape* CorvetteConfiguration1::getShape(const string& _name, const Point<int>& _origin, char _filledChar) const {
	return new RectangularBoatShape(_name, _origin, Dimension<int>(1,1), _filledChar);
}
